package com.maiji.cloud.entities.login;

import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 分享规则配置表
 * Description:  
 * @author zhanglr  
 * @date 2019年11月6日
 */
@NoArgsConstructor
@Data
@Accessors(chain=true)
@Table(name = "activity_share_rule_config")
@TableName("activity_share_rule_config")
public class ActivityShareRuleConfigEntity {
    
	@TableId
	@Column(name = "uu_id", type = MySqlTypeConstant.VARCHAR, length = 50, isKey = true)
    private String uuId; //主键
	
	@Column(name = "title", type = MySqlTypeConstant.VARCHAR, length = 255)
	private String title; //分享卡片标题
	
	@Column(name = "title_one", type = MySqlTypeConstant.VARCHAR, length = 255)
	private String titleOne; //卡片详情一级表题
	
	@Column(name = "title_two", type = MySqlTypeConstant.VARCHAR, length = 255)
	private String titleTwo; //卡片详情二级表题
	
	@Column(name = "type", type = MySqlTypeConstant.INT, length = 2)
	private Integer type; //配置类型 1：减肥分享配置，2：订单返现分享配置,3：分销文本配置
		
	@Column(name = "rule", type = MySqlTypeConstant.VARCHAR)
	private String rule; //分享规则
	
	@Column(name = "text", type = MySqlTypeConstant.TEXT )
	private String text; //文本内容
	
	@Column(name = "text_two", type = MySqlTypeConstant.TEXT )
	private String textTwo; //文本内容

    @Column(name = "bg_img", type = MySqlTypeConstant.TEXT)
    private String bgImg; //分享背景图片url
	
	@Column(name = "card_img", type = MySqlTypeConstant.TEXT)
	private String cardImg; //分享卡片图片url
	
	@Column(name = "in_time", type = MySqlTypeConstant.DATETIME)
    private Date inTime;  //插入时间

    @TableField(exist = false)
    private String bgImgId;

    @TableField(exist = false)
    private String cardImgId;
	
}
